inherited FormCadRota: TFormCadRota
  Left = 232
  Top = 265
  Caption = 'Rota'
  PixelsPerInch = 96
  TextHeight = 13
  inherited PageControl: TPageControl
    inherited Principal: TTabSheet
      object Label1: TLabel
        Left = 5
        Top = 23
        Width = 70
        Height = 13
        Alignment = taRightJustify
        AutoSize = False
        Caption = 'C'#243'digo:'
        FocusControl = DBEdit1
      end
      object Label2: TLabel
        Left = 5
        Top = 53
        Width = 70
        Height = 13
        Alignment = taRightJustify
        AutoSize = False
        Caption = 'Descri'#231#227'o'
        FocusControl = DBEdit2
      end
      object Label3: TLabel
        Left = 5
        Top = 83
        Width = 70
        Height = 13
        Alignment = taRightJustify
        AutoSize = False
        Caption = 'Cliente:'
        FocusControl = DBEdit3
      end
      object SpeedButton1: TSpeedButton
        Left = 430
        Top = 75
        Width = 30
        Height = 30
        Flat = True
        Glyph.Data = {
          F6060000424DF606000000000000360000002800000018000000180000000100
          180000000000C006000000000000000000000000000000000000FF00FFFF00FF
          FF00FFFF00FFFF00FFFF00FFFF00FFFF00FFFF00FFFF00FFFF00FFFF00FFFF00
          FFFF00FFFF00FFFF00FFFF00FFFF00FFFF00FFFF00FFFF00FFFF00FFFF00FFFF
          00FFFF00FFFF00FFFF00FFFF00FFFF00FFFF00FFFF00FFFF00FFFF00FFAB4E2D
          AD4E2DAF4F2DAF4F2DAF4F2DAB4E2DAB4E2DFF00FFFF00FFFF00FFFF00FFFF00
          FFFF00FFFF00FFFF00FFFF00FFFF00FFFF00FFFF00FFFF00FFFF00FFFF00FFAB
          4E2DB2502EBA5430BF5631C25732C25732C25732BF5631B7522FB0502EAB4E2D
          FF00FFFF00FFFF00FFFF00FFFF00FFFF00FFFF00FFFF00FFFF00FFFF00FFFF00
          FFAB4E2DB2502EBD5531C35833CC5D36CD613BCE633ECE633ECE633ECD613BCC
          5B34C35833BB5531AF4F2DFF00FFFF00FFFF00FFFF00FFFF00FFFF00FFFF00FF
          FF00FFFF00FFAB4E2DB0502EC05732CA5B34CE623CD06844D16B47D16E4BD26F
          4CD16E4BD16B47CF6641CD613BCA5B34BD5531AF4F2DFF00FFFF00FFFF00FFFF
          00FFFF00FFFF00FFFF00FFFF00FFAF4F2DBF5631CC5D36CF643FD16C49D3714F
          C75933CA5B34CA5B34C85A34D37453D2704ED16B47CF643FCA5B34BD5531AF4F
          2DFF00FFFF00FFFF00FFFF00FFFF00FFFF00FFAD4E2DBD5531CC5B34CF6641D2
          6F4CD47554D57959DF987FFFFFFFFFFFFFFFFFFFD57857D57857D47554D26F4C
          CF643FCA5B34BB5531AB4E2DFF00FFFF00FFFF00FFFF00FFFF00FFB5522FC559
          33CE623CD26F4CD47554D57B5BD67D5EE09A82FFFFFFFFFFFFFFFFFFD67C5CD6
          7D5ED57959D47554D16B47CD613BC35833B0502EFF00FFFF00FFFF00FFFF00FF
          AB4E2DBD5531CC5D36D06844D37351D57959D67D5ED78061E09A82FFFFFFFFFF
          FFFFFFFFD77E5FD78061D67D5ED57857D2704ECF6641CC5B34B7522FAB4E2DFF
          00FFFF00FFFF00FFAD4E2DC25732CE623CD16E4BD37351DC8D72DE957CDE977E
          E6AF9CFFFFFFFFFFFFFFFFFFDD9379DE977EDE947ADC8D72D37351D16B47CD61
          3BBF5631AB4E2DFF00FFFF00FFFF00FFB0502EC55933DA8A6EDC9076FFFFFFFF
          FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
          DA876ADD9177DA8A6EC25732AF4F2DFF00FFFF00FFFF00FFC55933DA8A6EDD91
          77DF987FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
          FFFFFFFFFFFFFFFFDC9076DF9981DD9177DA876AC25732FF00FFFF00FFFF00FF
          D16E4BDD9379E09C84E2A18AFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
          FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFDF9981E2A28CE09A82DD9177D16C49FF
          00FFFF00FFFF00FFAD4E2DE09A82E2A28CE4A994ECC1B2ECC3B4EDC4B5EDC4B5
          F7E4DDFFFFFFFFFFFFFFFFFFEDC5B7EDC4B5EDC4B5ECC3B4E19D85E4A792E2A2
          8CDF9981AD4E2DFF00FFFF00FFFF00FFAB4E2DE2A18AE4A792E6AE9AE8B4A2E9
          B7A5E9BAA9EABBAAEEC9BCFFFFFFFFFFFFFFFFFFE9B8A7EABBAAE9BAA9E9B7A5
          E7B29FE6AE9AE4A792E19E87AB4E2DFF00FFFF00FFFF00FFFF00FFE4A994E6AF
          9CE8B4A2EABBAAEBBDADECC0B0ECC1B2F0CFC4FFFFFFFFFFFFFFFFFFECC1B2EC
          C1B2ECC0B0EBBDADE9BAA9E8B4A2E6AE9AE3A691FF00FFFF00FFFF00FFFF00FF
          FF00FFAF4F2DE8B4A2E9BAA9EBBFAFECC3B4EDC5B7EEC6B8F2D3C8FFFFFFFFFF
          FFFFFFFFEDC5B7EEC6B8EDC5B7ECC3B4EBBDADE9BAA9E8B4A2AB4E2DFF00FFFF
          00FFFF00FFFF00FFFF00FFAB4E2DEABBAAEBBFAFECC3B4EEC6B8EEC9BCEFCABD
          F3D7CDFFFFFFFFFFFFFFFFFFEFCABDEFCABDEEC9BCEDC5B7ECC1B2EBBFAFE9BA
          A9FF00FFFF00FFFF00FFFF00FFFF00FFFF00FFFF00FFAB4E2DEDC4B5EEC7BAEF
          CBBFF0CCC0F0CFC4F0CCC0EFCBBFEFCBBFEFCBBFF1D0C5F0CFC4F0CCC0EFCABD
          EEC7BAEDC4B5AB4E2DFF00FFFF00FFFF00FFFF00FFFF00FFFF00FFFF00FFFF00
          FFAB4E2DEFCBBFF0CEC2F1D0C5F1D2C7F2D3C8F2D4CAF2D4CAF2D4CAF2D3C8F1
          D2C7F1D0C5F0CEC2E7B3A1AB4E2DFF00FFFF00FFFF00FFFF00FFFF00FFFF00FF
          FF00FFFF00FFFF00FFFF00FFAB4E2DAF4F2DF2D3C8F2D6CCF3D7CDF3D7CDF3D7
          CDF3D7CDF3D7CDF2D6CCF2D3C8AF4F2DFF00FFFF00FFFF00FFFF00FFFF00FFFF
          00FFFF00FFFF00FFFF00FFFF00FFFF00FFFF00FFFF00FFFF00FFFF00FFAB4E2D
          AD4E2DE2A18AF2D6CCE1A089AD4E2DAB4E2DFF00FFFF00FFFF00FFFF00FFFF00
          FFFF00FFFF00FFFF00FFFF00FFFF00FFFF00FFFF00FFFF00FFFF00FFFF00FFFF
          00FFFF00FFFF00FFFF00FFFF00FFFF00FFFF00FFFF00FFFF00FFFF00FFFF00FF
          FF00FFFF00FFFF00FFFF00FFFF00FFFF00FFFF00FFFF00FFFF00FFFF00FFFF00
          FFFF00FFFF00FFFF00FFFF00FFFF00FFFF00FFFF00FFFF00FFFF00FFFF00FFFF
          00FFFF00FFFF00FFFF00FFFF00FFFF00FFFF00FFFF00FFFF00FF}
        OnClick = SpeedButton1Click
      end
      object DBEdit1: TDBEdit
        Left = 82
        Top = 20
        Width = 70
        Height = 21
        DataField = 'CODROTA'
        DataSource = dsPrincipal
        Enabled = False
        TabOrder = 0
      end
      object DBEdit2: TDBEdit
        Left = 82
        Top = 50
        Width = 264
        Height = 21
        CharCase = ecUpperCase
        DataField = 'DESCRICAO'
        DataSource = dsPrincipal
        TabOrder = 1
      end
      object DBEdit3: TDBEdit
        Left = 82
        Top = 80
        Width = 70
        Height = 21
        DataField = 'CODCLIENTE'
        DataSource = dsPrincipal
        TabOrder = 2
      end
      object JvDBLookupComboCliente: TJvDBLookupCombo
        Left = 160
        Top = 80
        Width = 261
        Height = 21
        DataField = 'CODCLIENTE'
        DataSource = dsPrincipal
        ListStyle = lsDelimited
        LookupField = 'CODCLIENTE'
        LookupDisplay = 'NOME;CODCLIENTE'
        LookupSource = DMSr.dsCliente2
        TabOrder = 3
      end
    end
    inherited Detalhe: TTabSheet
      object Panel4: TPanel
        Left = 0
        Top = 0
        Width = 654
        Height = 41
        Align = alTop
        BorderStyle = bsSingle
        TabOrder = 0
        object SpeedButton8: TSpeedButton
          Left = 17
          Top = 3
          Width = 80
          Height = 30
          Caption = 'Cidade'
          Flat = True
          Glyph.Data = {
            F6060000424DF606000000000000360000002800000018000000180000000100
            180000000000C006000000000000000000000000000000000000FF00FFFF00FF
            FF00FFFF00FFFF00FFFF00FFFF00FFFF00FFFF00FFFF00FFFF00FFFF00FFFF00
            FFFF00FFFF00FFFF00FFFF00FFFF00FFFF00FFFF00FFFF00FFFF00FFFF00FFFF
            00FFFF00FFFF00FFFF00FFFF00FFFF00FFFF00FFFF00FFFF00FFFF00FFAB4E2D
            AD4E2DAF4F2DAF4F2DAF4F2DAB4E2DAB4E2DFF00FFFF00FFFF00FFFF00FFFF00
            FFFF00FFFF00FFFF00FFFF00FFFF00FFFF00FFFF00FFFF00FFFF00FFFF00FFAB
            4E2DB2502EBA5430BF5631C25732C25732C25732BF5631B7522FB0502EAB4E2D
            FF00FFFF00FFFF00FFFF00FFFF00FFFF00FFFF00FFFF00FFFF00FFFF00FFFF00
            FFAB4E2DB2502EBD5531C35833CC5D36CD613BCE633ECE633ECE633ECD613BCC
            5B34C35833BB5531AF4F2DFF00FFFF00FFFF00FFFF00FFFF00FFFF00FFFF00FF
            FF00FFFF00FFAB4E2DB0502EC05732CA5B34CE623CD06844D16B47D16E4BD26F
            4CD16E4BD16B47CF6641CD613BCA5B34BD5531AF4F2DFF00FFFF00FFFF00FFFF
            00FFFF00FFFF00FFFF00FFFF00FFAF4F2DBF5631CC5D36CF643FD16C49D3714F
            C75933CA5B34CA5B34C85A34D37453D2704ED16B47CF643FCA5B34BD5531AF4F
            2DFF00FFFF00FFFF00FFFF00FFFF00FFFF00FFAD4E2DBD5531CC5B34CF6641D2
            6F4CD47554D57959DF987FFFFFFFFFFFFFFFFFFFD57857D57857D47554D26F4C
            CF643FCA5B34BB5531AB4E2DFF00FFFF00FFFF00FFFF00FFFF00FFB5522FC559
            33CE623CD26F4CD47554D57B5BD67D5EE09A82FFFFFFFFFFFFFFFFFFD67C5CD6
            7D5ED57959D47554D16B47CD613BC35833B0502EFF00FFFF00FFFF00FFFF00FF
            AB4E2DBD5531CC5D36D06844D37351D57959D67D5ED78061E09A82FFFFFFFFFF
            FFFFFFFFD77E5FD78061D67D5ED57857D2704ECF6641CC5B34B7522FAB4E2DFF
            00FFFF00FFFF00FFAD4E2DC25732CE623CD16E4BD37351DC8D72DE957CDE977E
            E6AF9CFFFFFFFFFFFFFFFFFFDD9379DE977EDE947ADC8D72D37351D16B47CD61
            3BBF5631AB4E2DFF00FFFF00FFFF00FFB0502EC55933DA8A6EDC9076FFFFFFFF
            FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
            DA876ADD9177DA8A6EC25732AF4F2DFF00FFFF00FFFF00FFC55933DA8A6EDD91
            77DF987FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
            FFFFFFFFFFFFFFFFDC9076DF9981DD9177DA876AC25732FF00FFFF00FFFF00FF
            D16E4BDD9379E09C84E2A18AFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
            FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFDF9981E2A28CE09A82DD9177D16C49FF
            00FFFF00FFFF00FFAD4E2DE09A82E2A28CE4A994ECC1B2ECC3B4EDC4B5EDC4B5
            F7E4DDFFFFFFFFFFFFFFFFFFEDC5B7EDC4B5EDC4B5ECC3B4E19D85E4A792E2A2
            8CDF9981AD4E2DFF00FFFF00FFFF00FFAB4E2DE2A18AE4A792E6AE9AE8B4A2E9
            B7A5E9BAA9EABBAAEEC9BCFFFFFFFFFFFFFFFFFFE9B8A7EABBAAE9BAA9E9B7A5
            E7B29FE6AE9AE4A792E19E87AB4E2DFF00FFFF00FFFF00FFFF00FFE4A994E6AF
            9CE8B4A2EABBAAEBBDADECC0B0ECC1B2F0CFC4FFFFFFFFFFFFFFFFFFECC1B2EC
            C1B2ECC0B0EBBDADE9BAA9E8B4A2E6AE9AE3A691FF00FFFF00FFFF00FFFF00FF
            FF00FFAF4F2DE8B4A2E9BAA9EBBFAFECC3B4EDC5B7EEC6B8F2D3C8FFFFFFFFFF
            FFFFFFFFEDC5B7EEC6B8EDC5B7ECC3B4EBBDADE9BAA9E8B4A2AB4E2DFF00FFFF
            00FFFF00FFFF00FFFF00FFAB4E2DEABBAAEBBFAFECC3B4EEC6B8EEC9BCEFCABD
            F3D7CDFFFFFFFFFFFFFFFFFFEFCABDEFCABDEEC9BCEDC5B7ECC1B2EBBFAFE9BA
            A9FF00FFFF00FFFF00FFFF00FFFF00FFFF00FFFF00FFAB4E2DEDC4B5EEC7BAEF
            CBBFF0CCC0F0CFC4F0CCC0EFCBBFEFCBBFEFCBBFF1D0C5F0CFC4F0CCC0EFCABD
            EEC7BAEDC4B5AB4E2DFF00FFFF00FFFF00FFFF00FFFF00FFFF00FFFF00FFFF00
            FFAB4E2DEFCBBFF0CEC2F1D0C5F1D2C7F2D3C8F2D4CAF2D4CAF2D4CAF2D3C8F1
            D2C7F1D0C5F0CEC2E7B3A1AB4E2DFF00FFFF00FFFF00FFFF00FFFF00FFFF00FF
            FF00FFFF00FFFF00FFFF00FFAB4E2DAF4F2DF2D3C8F2D6CCF3D7CDF3D7CDF3D7
            CDF3D7CDF3D7CDF2D6CCF2D3C8AF4F2DFF00FFFF00FFFF00FFFF00FFFF00FFFF
            00FFFF00FFFF00FFFF00FFFF00FFFF00FFFF00FFFF00FFFF00FFFF00FFAB4E2D
            AD4E2DE2A18AF2D6CCE1A089AD4E2DAB4E2DFF00FFFF00FFFF00FFFF00FFFF00
            FFFF00FFFF00FFFF00FFFF00FFFF00FFFF00FFFF00FFFF00FFFF00FFFF00FFFF
            00FFFF00FFFF00FFFF00FFFF00FFFF00FFFF00FFFF00FFFF00FFFF00FFFF00FF
            FF00FFFF00FFFF00FFFF00FFFF00FFFF00FFFF00FFFF00FFFF00FFFF00FFFF00
            FFFF00FFFF00FFFF00FFFF00FFFF00FFFF00FFFF00FFFF00FFFF00FFFF00FFFF
            00FFFF00FFFF00FFFF00FFFF00FFFF00FFFF00FFFF00FFFF00FF}
          OnClick = SpeedButton8Click
        end
      end
      object DBGrid2: TDBGrid
        Left = 0
        Top = 41
        Width = 654
        Height = 244
        Align = alClient
        DataSource = dsDetalhe
        TabOrder = 1
        TitleFont.Charset = DEFAULT_CHARSET
        TitleFont.Color = clWindowText
        TitleFont.Height = -11
        TitleFont.Name = 'MS Sans Serif'
        TitleFont.Style = []
        OnColExit = DBGrid2ColExit
        Columns = <
          item
            Expanded = False
            FieldName = 'CODCIDADE'
            Title.Caption = 'C'#243'digo:'
            Visible = True
          end
          item
            Expanded = False
            FieldName = 'lkCidade'
            Title.Caption = 'Cidade'
            Width = 242
            Visible = True
          end
          item
            Expanded = False
            FieldName = 'SEQUENCIA'
            Title.Caption = 'Sequencia'
            Visible = True
          end
          item
            Expanded = False
            FieldName = 'CODDESTINO'
            Visible = False
          end
          item
            Expanded = False
            FieldName = 'CODVEICULO'
            Visible = False
          end
          item
            Expanded = False
            FieldName = 'lkVeiculo'
            Visible = False
          end
          item
            Expanded = False
            FieldName = 'CODROTA'
            Visible = False
          end
          item
            Expanded = False
            FieldName = 'CODCOMBOIO'
            Visible = False
          end>
      end
      object Panel3: TPanel
        Left = 0
        Top = 285
        Width = 654
        Height = 41
        Align = alBottom
        BorderStyle = bsSingle
        TabOrder = 2
      end
    end
  end
  inherited dsPrincipal: TDataSource
    DataSet = DMprinc.QueryRota
  end
  inherited dsDetalhe: TDataSource
    DataSet = QueryDestino
  end
  object QueryDestino: TZQuery
    Connection = DMprinc.ZConnection1
    SortedFields = 'CODROTA'
    BeforePost = QueryDestinoBeforePost
    SQL.Strings = (
      'select * from destino'
      'where codrota = :pcodmaster')
    Params = <
      item
        DataType = ftUnknown
        Name = 'pcodmaster'
        ParamType = ptUnknown
      end>
    MasterFields = 'CODROTA'
    MasterSource = dsPrincipal
    LinkedFields = 'CODROTA'
    IndexFieldNames = 'CODROTA Asc'
    Left = 396
    Top = 347
    ParamData = <
      item
        DataType = ftUnknown
        Name = 'pcodmaster'
        ParamType = ptUnknown
      end>
    object QueryDestinoCODDESTINO: TIntegerField
      FieldName = 'CODDESTINO'
      Required = True
    end
    object QueryDestinoCODVEICULO: TIntegerField
      FieldName = 'CODVEICULO'
    end
    object QueryDestinolkVeiculo: TStringField
      FieldKind = fkLookup
      FieldName = 'lkVeiculo'
      LookupDataSet = DMprinc.QueryVeiculo
      LookupKeyFields = 'CODVEICULO'
      LookupResultField = 'PLACA'
      KeyFields = 'CODVEICULO'
      Lookup = True
    end
    object QueryDestinoCODCIDADE: TIntegerField
      FieldName = 'CODCIDADE'
    end
    object QueryDestinolkCidade: TStringField
      FieldKind = fkLookup
      FieldName = 'lkCidade'
      LookupDataSet = DMprinc.QueryCidade
      LookupKeyFields = 'CODCIDADE'
      LookupResultField = 'NOME'
      KeyFields = 'CODCIDADE'
      Lookup = True
    end
    object QueryDestinoCODROTA: TIntegerField
      FieldName = 'CODROTA'
    end
    object QueryDestinoSEQUENCIA: TSmallintField
      FieldName = 'SEQUENCIA'
    end
    object QueryDestinoCODCOMBOIO: TIntegerField
      FieldName = 'CODCOMBOIO'
    end
  end
end
